<!doctype html>
<html class="no-js" lang="">

<head>
    <meta charset="utf-8">
    <meta http-equiv="x-ua-compatible" content="ie=edge">
    <title>安全会议登记</title>
    <meta name="description" content="">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link href="../css/reset.css" rel="stylesheet">

    <link rel="stylesheet" href="../lib/angular-bootstrap-datepicker/dist/angular-bootstrap-datepicker.css" />
    <link rel="stylesheet" href="../lib/angular-bootstrap-datepicker/example/bootstrap/css/bootstrap.css" />

    <link href="../lib/css/font-awesome-4.5.0/css/font-awesome.min.css" rel="stylesheet">
    <link href="../css/style.css" rel="stylesheet">

    <script src="../lib/angular-bootstrap-datepicker/example/jquery.js"></script>
    <script src="../lib/angular-1.3.0/angular.js"></script>
    <script src="../lib/angular-bootstrap-datepicker/dist/angular-bootstrap-datepicker.js" charset="utf-8"></script>

    <script type="text/javascript">
    var app = angular.module("app", ['ng-bootstrap-datepicker']);
    app.controller("anquandengjiCtrl", function($scope) {

        this.data = {
            isEdit: true,
            basicInfo: {
                field1: "",
                field2: "",
                field3: "",
                field4: "",
                field5: "",
                field6: "",
                field7: ""
            },
            attachmentInfo: [{
                id: 1,
                name: "附件1"
            }]
        };
        this.method = {
            delAttachment: function($index) {
                this.data.attachmentInfo.splice($index, 1);
            }.bind(this),
            addAttachment: function() {
                this.data.attachmentInfo.push({
                    id: 33,
                    name: "3333"
                });
            }.bind(this)
        };
    });
    </script>
</head>

<body ng-app="app" ng-controller="anquandengjiCtrl as vm">
    <div class="main">
        <div class="main-header">
            <div class="pa-icon-div pull-left" style="color:black">
                <i class="fa fa-home"></i>
                <span>内页>安全活动><span style="color:#008bdd">安全活动登记</span></span>
            </div>
            <div class="pa-icon-div pull-right">
                <i class="fa fa-reply-all"></i>
                <span>返回</span>
            </div>
        </div>
        <div class="main-content">
            <div class="content-title">安全会议登记</div>
            <div class="content-item">
                <div class="content-item-header">
                    <label>基本信息</label>
                </div>
                <form class="content-item-content fs-0">
                    <div class="pa-form-control pa-width-50">
                        <label class="text-right "><b>*</b>会议名称：</label>
                        <input type="text" class="form-control-input" placeholder="请输入" ng-model="vm.data.basicInfo.field1">
                    </div>
                    <div class="pa-form-control pa-width-50">
                        <label class="text-right ">组织部门：</label>
                        <input type="text" class="form-control-input" placeholder="请输入" ng-model="vm.data.basicInfo.field2">
                    </div>
                    <div class="pa-form-control pa-width-50">
                        <label class="text-right ">会议时间：</label>
                        <input type="text" class="form-control-input" data-ng-datepicker placeholder="请输入" ng-model="vm.data.basicInfo.field3">
                    </div>
                    <div class="pa-form-control pa-width-50">
                        <label class="text-right ">会议地点：</label>
                        <input type="text" class="form-control-input" placeholder="请输入" ng-model="vm.data.basicInfo.field4">
                    </div>
                    <div class="pa-form-control pa-width-50">
                        <label class="text-right ">主持人：</label>
                        <input type="text" class="form-control-input" placeholder="请输入" ng-model="vm.data.basicInfo.field5">
                    </div>
                    <div class="pa-form-control pa-width-50">
                        <label class="text-right ">记录人：</label>
                        <input type="text" class="form-control-input" placeholder="请输入" ng-model="vm.data.basicInfo.field6">
                    </div>
                    <div class="pa-form-control">
                        <label class="text-right ">会议主要内容：</label>
                        <label style="width:auto;padding-right: 5px;color:black">内容编辑</label>
                        <input class="radio-radius" type="radio" name="pa-radio" value="true" ng-checked="true" ng-model="vm.data.isEdit">
                        <label style="width:auto;padding-right: 5px;color:black">见附件</label>
                        <input class="radio-radius" type="radio" name="pa-radio" value="false" ng-model="vm.data.isEdit">
                    </div>
                    <div class="pa-form-control pa-width-100" ng-show="vm.data.isEdit">
                        <textarea style="height: 150px;width: 50%;padding: 5px" ng-model="vm.data.basicInfo.field7"></textarea>
                    </div>
                </form>
            </div>
            <div class="content-item">
                <div class="content-item-header">
                    <label>附件信息</label>
                    <div class="pa-operate">
                        <i class="fa fa-plus"></i>
                        <span ng-click="vm.method.addAttachment()">新增</span>
                    </div>
                </div>
                <div class="content-item-content">
                    <div ng-repeat="value in vm.data.attachmentInfo" style="padding-bottom:10px">
                        <span style="display:inline-block;min-width:150px">{{value.name}}</span>
                        <i class="fa fa-times-circle" style="margin-left: 20px;color:#ddd" ng-click="vm.method.delAttachment($index);"></i>
                    </div>
                </div>
            </div>
        </div>
        <div class="main-footer">
            <div class="text-right padding">
                <button class="pa-btn">确定</button>
                <button class="pa-btn reset-btn">取消</button>
            </div>
        </div>
    </div>
</body>

</html>
<style type="text/css">
.pa-form-control input,
.pa-form-control label {
    margin-bottom: 0;
}

 .input-append {
    margin-bottom: 0;
    padding: 0 !important;
    border: 0 !important;
}

.main-header {
    height: 32px;
    line-height: 32px;
    padding: 15px;
}

.main-content {
    border: 1px solid #ddd;
    -webkit-box-shadow: 0 0 10px #d6dce3;
    -moz-box-shadow: 0 0 10px #d6dce3;
    box-shadow: 0 0 10px #d6dce3;
}

.content-title {
    color: #008bdd;
    padding: 10px;
    border-left: 3px solid #008bdd;
}

.content-item {
    margin: 10px;
    padding: 10px;
    margin-bottom: 5px;
}

.content-item .content-item-header {
    border-top: 1px solid #ddd;
    padding: 5px 10px;
    background-color: #f2f2f2;
}

.content-item .content-item-header label {
    height: 32px;
    line-height: 32px;
}

.content-item .content-item-content {
    padding: 10px;
    width: 100%;
}

.main-content .pa-form-control {
    display: inline-block;
    padding: 10px 0;
    margin: 0;
    font-size: 16px;
}

.main-content .pa-form-control label {
    height: 30px;
    line-height: 30px;
    width: 120px;
    display: inline-block;
    color: #008bdd;
    vertical-align: middle;
}

.main-content .form-control-input {
    padding: 0 8px;
    height: 30px;
    line-height: 30px;
    font-size: 14px;
    color: #666;
    border: none;
    border-bottom: 1px solid #d4d7d9;
    border-radius: 4px;
    min-width: 220px
}

.fs-0 {
    font-size: 0;
}

.pa-width-50 {
    width: 50%;
}

.pa-width-100 {
    width: 100%;
}

.pa-icon-div {
    display: inline-block;
    height: 32px;
    line-height: 32px;
    font-size: 14px;
    color: #008bdd;
    cursor: pointer;
}

.padding {
    padding: 5px;
}

.main-footer {
    margin-top: 10px;
}
</style>
